#include<stdio.h>
int main(){
    int n;
    scanf("%d",&n);
    int a[n];
    for(int i=0;i<n;i++){
        scanf("%d",&a[i]);
    }
    double sum=0;
    for(int i=0;i<n;i++){
        sum+=a[i];
    }
    double avg=sum/n;
    int max=a[0];
    int min=a[0];
    for(int i=1;i<n;i++){
        if(a[i]>max){
            max=a[i];
        }if(a[i]<min){
            min=a[i];
        }
    }
    printf("average = %.2f\n",avg);
    printf("max = %.2f\n",(double)max);
    printf("min = %.2f\n",(double)min);
    return 0;
}